<template>
  <div class="page">
  <el-pagination
  background
   @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :page-size="pageSize"
      layout="prev, pager, next, jumper"
      :total="total">
    </el-pagination></div>
</template>

<script>
export default {
  props:['total','pageSize'],
 methods: {
      handleSizeChange(val) {
       
        this.$parent.pageSize = val
        this.$parent.getData()
      },
      handleCurrentChange(val) {
        
        this.$parent.page = val
        this.$parent.getData()
      }
    },
}
</script>

<style lang="less" scoped>

.page{
  background-color: #fff;
  padding-top: 10px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  /deep/.btn-prev{
  background-color: #fff;
  border: 2px solid #f4f4f5;
  border-radius: 7px;
}
  /deep/.btn-next{
  background-color: #fff;
  border: 2px solid #f4f4f5;
  border-radius: 7px;
}
/deep/.el-pager li{
  background-color: #fff;
  border: 2px solid #f4f4f5;
  border-radius: 7px;
}
}

</style>